﻿using System;
namespace TCPSockets.Interfaces
{
    public interface IClient
    {
        string Host { get; set; }
        int Port { get; set; }

        bool Connected { get; set; }

        bool Connect(string Host, int Port);
        
        void Send(string Message);


        event ClientEvents.Handlers.OnConnectedEventHandler OnConnected;
        event ClientEvents.Handlers.OnDataSendEventHandler OnDataSend;
        event ClientEvents.Handlers.OnDisconnectedEventHandler OnDisconnected;
        event ClientEvents.Handlers.OnErrorEventHandler OnError;
        event ClientEvents.Handlers.OnReceiveDataEventHandler OnReceiveData;
    }
}
